x86/event: correct debug event generation
authorJan Beulich <jbeulich@suse.com>
Thu, 12 Nov 2015 16:03:20 +0000 (17:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 12 Nov 2015 16:03:20 +0000 (17:03 +0100)
commit5ab6654cf0f2a90b23d5ab714fa49ae038d21e17
treecac736b1e1fbaeb4cbc2092253c217fcd35d6918
parent0b52ed063d6731b53eaf976cfa9c51906e50e370
x86/event: correct debug event generation

RIP is not a linear address, and hence should not on its own be subject
to GVA -> GFN translation. Once at it, move all of the (perhaps
expensive) operations in the two functions into their main if()'s body,
and improve the error code passed to the translation function.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/event.c
xen/include/asm-x86/hvm/event.h